package cn.whitecao.contentcenter.feignclient.fallback;

import cn.whitecao.contentcenter.domain.dto.user.UserDTO;
import cn.whitecao.contentcenter.feignclient.UserCenterFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author ：腼腆的老黄.
 * @date ：Created in 2019-10-08 19:48
 */
@Component
public class UserCenterFeignClientFallback implements UserCenterFeignClient {
    @Override
    public UserDTO findById(Integer id) {
        UserDTO dto = new UserDTO();
        dto.setWxNickname("赵丹宁");
        return dto;
    }

    @Override
    public UserDTO query(UserDTO userDTO) {
        return null;
    }
}
